<template>
  <!-- <el-card> -->
  <el-row type="flex" justify="space-between" align="middle">
    <el-col>
      <div v-if="showBefore" class="before">
        <span>
          <slot name="before" />
        </span>
      </div>
    </el-col>
    <el-col>
      <el-row v-if="showAfter" type="flex" justify="end" align="middle">
        <slot name="after" />
      </el-row>
    </el-col>
  </el-row>
  <!-- </el-card> -->
</template>

<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: true
    },
    showAfter: {
      type: Boolean,
      default: true
    }
  }
}
</script>

<style lang="scss" scoped>
.before{
    display: inline-block;
}
</style>
